Soby Web Components

Example

<div id='fruittable'></div>
.fruit { color:red; }
document.getElementById("fruittable").innerHTML = ""; for(var i=0;i<fruits.length;i++){ document.getElementById("fruittable").innerHTML += '<div class="fruit">' + fruits[i] + '</div>'; }
var fruits = ["Banana", "Orange", "Apple", "Mango"];
This example displays all array values
View source